package IOBaseTest;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

/**
 * Created by yexuan on 2018/3/19.
 */
public class EncodeDemo {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s = "你好";
        byte[] bytes = s.getBytes();
        System.out.println(Arrays.toString(bytes));
        System.out.println(new String(bytes,"GBK"));
    }
}
